package com.example.demo.vo;

import com.example.demo.pojo.User;
import lombok.Data;
import java.io.Serializable;

/**
 * @author HL
 */
@Data
public class UserVo implements Serializable {
    private Integer uid;
    private String account;
    private String ciphertext;
    private String username;
    private String email;
    private String avatar;

    public UserVo(User user) {
        this.uid = user.getUid();
        this.account = user.getAccount();
        this.username = user.getUsername();
        this.email = user.getEmail();
        this.avatar = user.getAvatar();
    }

    @Override
    public String toString() {
        return "WordsVo{" +
                "uid=" + uid +
                ", account=" + account + '\'' +
                ", username=" + username + '\'' +
                ", email=" + email + '\'' +
                ", avatar=" + avatar +
                '}';
    }

}

